<?php

/**
 * ProductLine form base class.
 *
 * @package    wifilez
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormGeneratedTemplate.php 16976 2009-04-04 12:47:44Z fabien $
 */
class BaseProductLineForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'product_line_id' => new sfWidgetFormInputHidden(),
      'title'           => new sfWidgetFormInput(),
      'sku'             => new sfWidgetFormInput(),
      'content_id'      => new sfWidgetFormInput(),
      'platform_id'     => new sfWidgetFormInput(),
      'description'     => new sfWidgetFormTextarea(),
      'publisher_id'    => new sfWidgetFormInput(),
    ));

    $this->setValidators(array(
      'product_line_id' => new sfValidatorPropelChoice(array('model' => 'ProductLine', 'column' => 'product_line_id', 'required' => false)),
      'title'           => new sfValidatorString(array('max_length' => 64)),
      'sku'             => new sfValidatorString(array('max_length' => 16, 'required' => false)),
      'content_id'      => new sfValidatorInteger(),
      'platform_id'     => new sfValidatorInteger(),
      'description'     => new sfValidatorString(array('required' => false)),
      'publisher_id'    => new sfValidatorInteger(),
    ));

    $this->widgetSchema->setNameFormat('product_line[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'ProductLine';
  }


}
